import { POST } from "@/services/request.js";

export default {
    // 订单
    orderAdd(data = {}) {
        return POST({
            url: "order/add",
            params: data
        })
    },
    orderIndex(data = {}) {
        return POST({
            url: "order/index",
            params: data
        })
    },
    singleAdd(data = {}) {
        return POST({
            url: "order/sgladd",
            params: data
        })
    },
    singleIndex(data = {}) {
        return POST({
            url: "order/sglindex",
            params: data
        })
    },
    orderInfo(data = {}) {
        return POST({
            url: "order/info",
            params: data
        })
    },
    orderReceipt(data = {}) {
        return POST({
            url: "order/receipt",
            params: data
        })
    },
    orderExpress(data = {}) {
        return POST({
            url: "order/express",
            params: data
        })
    },
    orderRate(data = {}) {
        return POST({
            url: "order/rate",
            params: data
        })
    },
    orderComment(data = {}) {
        return POST({
            url: "order/comment",
            params: data
        })
    },
    orderPay(data = {}) {
        return POST({
            url: "order/pay",
            params: data
        })
    },
    orderRefund(data = {}) {
        return POST({
            url: "order/refund",
            params: data
        })
    },
    orderRejected(data = {}) {
        return POST({
            url: "order/rejected",
            params: data
        })
    },
    orderRefundgoods(data = {}) {
        return POST({
            url: "order/refundgoods",
            params: data
        })
    },
    orderBack(data = {}) {
        return POST({
            url: "order/back",
            params: data
        })
    },
}